b5f02ff5a70a94fb04918fc61e32775b234b3546,dsw/cxf-dsw/src/test/java/org/apache/cxf/dosgi/dsw/handlers/PojoConfigurationTypeHandlerTest.java,PojoConfigurationTypeHandlerTest,testCreateServerWithAddressProperty,#,157
Before Change
ServiceReference sr = EasyMock.createNiceMock(ServiceReference.class);
BundleContext callingContext = EasyMock.createNiceMock(BundleContext.class);
EasyMock.replay(sr);
EasyMock.replay(callingContext);
Map<String, Object> props = new HashMap<String, Object>();
props.put(Constants.WS_ADDRESS_PROPERTY, "http://alternate_host:80/myString");
After Change
ServiceReference sref = EasyMock.createNiceMock(ServiceReference.class);
BundleContext bundleContext = EasyMock.createNiceMock(BundleContext.class);
EasyMock.expect(bundleContext.getService(sref)).andReturn(myService);
EasyMock.replay(bundleContext);
Bundle bundle = EasyMock.createNiceMock(Bundle.class);
EasyMock.expect(bundle.getBundleContext()).andReturn(bundleContext);
EasyMock.replay(bundle);
EasyMock.expect(sref.getBundle()).andReturn(bundle);
EasyMock.replay(sref);
Map<String, Object> props = new HashMap<String, Object>();
props.put(Constants.WS_ADDRESS_PROPERTY, "http://alternate_host:80/myString");